home *** CD-ROM | disk | FTP | other *** search
Wrap
global gTNStartChannel, gTNCastLibNum, glImageList, glListState, glWSearchState, glRSearchState, glSSearchState, gCurrentScreen, gDomain, gTNClickOffset, gMouseOverTNspriteNum, gValiddEntry, gCurrentList, gListObject, PFList on DisplayCurrentImageInList PFList.pSelectedImageSpriteNum = gTNStartChannel + (PFList.pImageListPosition mod 30) if PFList.pltnnumberlist.count < 31 then PFList.pImageScroll = 1 else PFList.pImageScroll = integer(PFList.pImageListPosition / 30) + 1 end if DisplayThumbNails() UpdateImageScroller() if gCurrentList = EMPTY then HideSelection() else ShowSelection() end if RepositionTNhilite(PFList.pImageScroll) end on ShowSelection if value(gListObject).pSelectedImageSpriteNum <> 0 then sprite(80).loc = sprite(value(gListObject).pSelectedImageSpriteNum).loc else sprite(80).loc = point(-200, 0) end if sendSprite(73, #SetDimState) end on HideSelection value(gListObject).pSelectedImageSpriteNum = 0 value(gListObject).pCurrentImage = EMPTY sprite(80).loc = point(-200, 0) sendSprite(73, #SetDimState) end on PositionInsertionBar if sprite(gMouseOverTNspriteNum).member.name = "TN Placeholder" then exit end if sprite(78).loc = sprite(gMouseOverTNspriteNum).loc end on RepositionTNhilite oldImageScroll if sprite(80).locH <> -400 then scrollDirection = value(gListObject).pImageScroll - oldImageScroll value(gListObject).pSelectedImageSpriteNum = value(gListObject).pSelectedImageSpriteNum - (scrollDirection * 6) if (value(gListObject).pSelectedImageSpriteNum >= 31) and (value(gListObject).pSelectedImageSpriteNum <= (gTNStartChannel + value(gListObject).pltnnumberlist.count)) then sprite(80).loc = sprite(value(gListObject).pSelectedImageSpriteNum).loc else sprite(80).loc = point(-200, 0) end if end if end on DisplayThumbNails Option FirstImage = (value(gListObject).pImageScroll * 6) - 5 value(gListObject).pltnnumberlist = [] ImagesToDisplay = duplicate(value(gListObject).plFoundImages) repeat with theFoundImageNum = ImagesToDisplay.count down to 1 if getOne(glImageList, getAt(ImagesToDisplay, theFoundImageNum)) = 0 then deleteOne(ImagesToDisplay, getAt(ImagesToDisplay, theFoundImageNum)) end if end repeat NumberOfImages = ImagesToDisplay.count if ImagesToDisplay <> [] then repeat with imageNum = FirstImage to FirstImage + 29 if imageNum <= NumberOfImages then append(value(gListObject).pltnnumberlist, getAt(ImagesToDisplay, imageNum)) next repeat end if exit repeat end repeat channelNum = gTNStartChannel if not (value(gListObject).pltnnumberlist = []) then repeat with theImage in value(gListObject).pltnnumberlist if channelNum < (gTNStartChannel + 30) then channelNum = channelNum + 1 if not TNmemberExists(theImage, gTNCastLibNum) then alert("Can't find the thumbnails for image" && theImage) exit end if sprite(channelNum).member = member(theImage, gTNCastLibNum) next repeat end if exit repeat end repeat if value(gListObject).pltnnumberlist.count < 30 then repeat with emptyImage = value(gListObject).pltnnumberlist.count + 1 to 30 channelNum = channelNum + 1 sprite(channelNum).member = "TN placeholder" end repeat end if end if else repeat with emptyTNs = gTNStartChannel + 1 to gTNStartChannel + 30 sprite(emptyTNs).member = "TN placeholder" end repeat sprite(80).loc = point(-400, 0) updateStage() exit end if end on UpdateImageScroller member("thumbnail scrollbar").text = EMPTY ImagesToDisplay = duplicate(value(gListObject).plFoundImages) numberOfLines = integer(ImagesToDisplay.count / 6) repeat with scrollerLines = 1 to numberOfLines - 1 put RETURN after member "thumbnail scrollbar" end repeat member("thumbnail scrollbar").scrollTop = (value(gListObject).pImageScroll - 1) * 110 updateStage() end on EraseThumbnails value(gListObject).pSelectedImageSpriteNum = 0 sprite(80).loc = point(-400, 0) repeat with x = gTNStartChannel + 1 to gTNStartChannel + 30 sprite(x).member = "TN placeholder" end repeat updateStage() value(gListObject).plFoundImages = [] value(gListObject).pCurrentImage = EMPTY end on DisplaySystemThumbs ImageList channelNum = gTNStartChannel if not (ImageList = []) then repeat with theImage in ImageList if not (getOne(glImageList, theImage) = 0) then if channelNum < 60 then channelNum = channelNum + 1 sprite(channelNum).member = member(theImage, gTNCastLibNum) next repeat end if exit repeat end if end repeat end if end